<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo get_bloginfo(url).'/wp-content/themes/vtp/pagenavi-css.css'; ?>" type="text/css" media="screen" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory')?>/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory')?>/js/functions.js"></script>
</head>
    <body>
        <div id="wrapper">
        <div id="header">
            <table>
                <tr>
                    <td>
            <div id="logo">
                <a href="index.php"><?php echo getImage('VTP_logo.png','VTP Žilina')?></a>
            </div>
                        </td>
                    <td>
            <div id="banner">
                <?php global $vtpBanners;?>
                <?php $banners = $vtpBanners->getActiveBanners();

                    $banner = $banners[rand(0, count($banners)-1)];
                ?>
                <a href="<?php echo $banner['link']?>"><img src="<?php echo $banner['image']?>"/></a>
            </div>
                        </td>
                    </tr>
                </table>
        </div>
            <div id="content">
                <div id="main">
                    <?php getMainMenu();?>
                    <div class="clearer"></div>
                    <div id="mainContent">